<template>
  <div class="not-found">
    <div class="error-container">
      <h1>404</h1>
      <p>页面不存在</p>
      <router-link to="/" class="back-to-home">返回首页</router-link>
    </div>
  </div>
</template>

<script setup>
// 404页面无需复杂逻辑
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f7fa;
}

.error-container {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-container h1 {
  font-size: 5rem;
  color: #f56c6c;
  margin: 0;
}

.error-container p {
  font-size: 1.5rem;
  color: #606266;
  margin: 1rem 0 2rem;
}

.back-to-home {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #409EFF;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-to-home:hover {
  background-color: #66b1ff;
  transform: translateY(-2px);
}
</style>